<template lang="html">
  <div class="loginModule form-box">


          <el-col :xs="{span:22,offset:1}" :sm="{span:22,offset:1}" :md="{span:20,offset:2}" :lg="{span:20,offset:2}">

<el-form>
  <el-form-item label="">
    <el-select v-model="value" placeholder="用户选择">
        <el-option v-for="item in options"  :label="item.label" :value="item.value">
        </el-option>
    </el-select>
  </el-form-item>
  <el-form-item label="">
          <el-input placeholder="用户名"  type="text"></el-input>
  </el-form-item>
  <el-form-item label="">
          <el-input placeholder="密码"  type="password"></el-input>
  </el-form-item>
  <el-form-item label="">
    <router-link    v-bind:to="value" class="el-button el-button--default">登录</router-link>
    <!-- <el-button @click="login">登录</el-button> -->
          <!-- <el-button v-link="{path:'/registerConsumer'}">登录</el-button> -->
          <!-- <a v-link="{path:'/registerConsumer'}" class="btn">登录</a> -->

  </el-form-item>
  <el-form-item label="">

  </el-form-item>
</el-form>

          </el-col>


  </div>
  <!-- <el-input placeholder="用户名"  type="text"></el-input>
  <el-input placeholder="密码"  type="password"></el-input> -->
  <!-- <el-form   class="demo-ruleForm">
<el-form-item label="密码" prop="pass">
<el-input type="password"  auto-complete="off"></el-input>
</el-form-item>
<el-form-item label="确认密码" prop="checkPass">
<el-input type="password"  auto-complete="off"></el-input>
</el-form-item>

<el-form-item>
<el-button type="primary">提交</el-button>

</el-form-item>

</el-form> -->
</template>

<script>
export default {
    name: 'loginModule',
    data() {
        return {
            options: [{
                value: '/home/registerConsumer/basic',
                label: '会员'
            }, {
                value: '/home/registerShop/shopBasic',
                label: '商铺'
            }, {
                value: '/user/consultingCommon',
                label: '咨询师'
            }, {

                value: '/user/adminCommon',
                label: '管理员'
            }],
            value: ''
        }
    },
    methods: {
        login: () => {
            console.log(this.value);
            if (this.value != '') {
                this.$router.push(this.value)
            }


            //  window.location.href = "/registerConsumer"
        }
    }
}
</script>

<style lang="css">
.form-box{
  /*position: absolute;
  top: 200px;
  left: 55%;
  height: 300px;
  width: 320px;
  background-color: #fff;
  border: 1px solid #000;*/
}
</style>
